package cxt.cn.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import cxt.cn.dao.StudentDao;
import cxt.cn.domain.Student;
import cxt.cn.service.StudentService;
@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> findAll() {
        System.out.println("访问成功");
        List<Student> studentDaoAll = studentDao.findAll();
        return studentDaoAll;
    }

    @Override
    public void save(Student student) {
        System.out.println("保存账户");
        studentDao.save(student);
    }
}
